using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using FMSpaceShooter.GameService;
using FMSpaceShooter.GameObjects;
namespace FMSpaceShooter
{
#if WINDOWS || XBOX
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            using (Game1 game = new Game1())
            {
                // temporary random level builder
                Level.createRandomLevel(1);
                // end random level builder

                try
                {
                    game.Run();
                }
                catch (Exception ex)
                {
                    try
                    {
                        using (GameInterfaceSoapClient gis = new GameInterfaceSoapClient())
                        {
                            gis.SubmitError(ex.ToString());
                        }
                    }
                    catch (Exception)
                    {
                    }
                }
            }
        }
    }
#endif
}

